import wordcloud
import jieba
a = open("yeah","r",encoding="utf-8")
b = a.read()
a.close()
c = jieba.lcut(b)
txt = " ".join(c)
x = wordcloud.WordCloud(font_path="msyh.ttc",background_color='white',height=800,width=1000)
x.generate(txt)
x.to_file('x.png')